package com.acc.mobileappr.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by IntelliJ IDEA.
 * User: user
 * Date: Apr 20, 2011
 * Time: 10:54:41 AM
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "MST_M_APPR_CONTENT", schema = "ACC_BBMX")
@Entity
public class MstMApprContentEntity {
    private String contentId;

    @javax.persistence.Column(name = "CONTENT_ID")
    @Id
    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    private String contentName;

    @javax.persistence.Column(name = "CONTENT_NAME")
    @Basic
    public String getContentName() {
        return contentName;
    }

    public void setContentName(String contentName) {
        this.contentName = contentName;
    }

    private String description;

    @javax.persistence.Column(name = "DESCRIPTION")
    @Basic
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MstMApprContentEntity that = (MstMApprContentEntity) o;

        if (contentId != null ? !contentId.equals(that.contentId) : that.contentId != null) return false;
        if (contentName != null ? !contentName.equals(that.contentName) : that.contentName != null) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = contentId != null ? contentId.hashCode() : 0;
        result = 31 * result + (contentName != null ? contentName.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        return result;
    }
}
